module(...)
function index(req, resp) 
	resp:writeln("index")
end

function other(req, resp) 
	local a = req:get_uri_arg("a")
	local b = req:get_uri_arg("b")
	local c = req:get_uri_arg("c", "default") --对于不存在的变量，取默认值
	resp:header("sdf", "hoho..")
	resp:header("X-Powered-By", "x+s")
	resp:header("customheader2", "2")
	resp._header['Server'] = '33'
	--resp:redirect('http://www.baidu.com/', 302)
	resp:writeln("other .." .. a .. b .. c)
	local content = {
		a = a,
	}
	resp:tpl(content, 'aa.html')	
end
